package com.hevery.blog.test;

/**
 * @description: ${description}
 * @author: hongyu.zhang
 * @create: 2018-03-29
 **/
public class StringUtil {

    /**
     * 字符串首字母大写
     * @param str
     * @return
     */
    public static String firstCharUpperCase(String str){
        String str1 = str.trim();
        if((str1 == null) || ("".equals(str1))){
            return null;
        }
        return str1.substring(0,1).toUpperCase()+str1.substring(1);
    }
}
